#ifndef SMARTWIDGET_H
#define SMARTWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>

namespace Ui {
class smartwidget;
}

class smartwidget : public QWidget
{
    Q_OBJECT

public:
    explicit smartwidget(QWidget *parent = 0);
    ~smartwidget();
private slots:
    void backSlot();
private:
    Ui::smartwidget *ui;

    QPushButton *curtainRightOn; //窗帘右开
    QPushButton *curtainRightOff;//窗帘右关
    QPushButton *curtainLeftOn;//窗帘左开
    QPushButton *curtainLeftOff;//窗帘左关
    QPushButton *alarmOn;//报警器开
    QPushButton *alarmOff;//报警器关

    QPushButton *light1;
    QPushButton *light2;
    QPushButton *light3;
    QPushButton *light4;

    QPushButton *livingRoomAir1;
    QPushButton *livingRoomAir2;

    QPushButton *screen;
    QPushButton *jiankong;

    QGridLayout *mainlayout;

    QGridLayout *jiankonglayout;
    QHBoxLayout *uplayout;
    QHBoxLayout *downlayout;
    QHBoxLayout *startlayout;
    QVBoxLayout *jiankongmain;

    QPushButton *up;
    QPushButton *down;
    QPushButton *left;
    QPushButton *right;
    QPushButton *start;

    QPushButton *back;


};

#endif // SMARTWIDGET_H
